package com.lk.mapper;

import com.lk.bean.Admin;
import com.lk.request.LoginRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface AdminMapper {

    Admin login(LoginRequest loginRequest);

    List<Admin> getAdminList(Admin admin);

    Admin findByName(String name);

    int addAdmin(Admin admin);

    int updateAdmin(Admin admin);

    int delete(Integer[] ids);

    int updatePassWord(@Param("id") Integer id,@Param("password") String Password);
}
